<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>频谱感知</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
</head>
<body>
    <div class="container">
        <h1>频谱感知</h1>
        <div id="fileDropZone" onclick="handleClick()" ondrop="handleDrop(event)" ondragover="handleDragOver(event)">
            选择文件或拖拽文件到这里
        </div>
        <input type="file" id="fileInput" accept=".mat" style="display: none;">
        <div class="button-container">
            <button type="button" id="submitButton" class="noselect" disabled>
                <span>提交数据</span>
                <svg width="24" height="24" viewBox="0 0 24 24">
                    <path d="M0 0h24v24H0z" fill="none"/>
                    <path d="M12 0C5.372 0 0 5.372 0 12s5.372 12 12 12 12-5.372 12-12S18.628 0 12 0zm-1 17.93l-5.657-5.657 1.414-1.414L11 14.101l7.243-7.243 1.414 1.414L11 17.93z"/>
                </svg>
            </button>
            <button type="button" id="cancelButton">取消</button>
        </div>
        <div id="outputBox" class="output-box">
            <div id="resultBox" class="result-box"></div>
        </div>
        <div id="finalOutputBox" class="final-OutputBox"> <!-- 新增的输出框 -->
            <div id="finalResultBox" class="final-ResultBox"></div>
        </div>
    </div>
    <script src="{{ url_for('static', filename='script.js') }}"></script> <!-- 引用外部 JavaScript 文件 -->
</body>
</html>